Optimal. Leaf size=142 \[ \frac {b x^3}{a (b c-a d) n \left (a+b x^n\right )}+\frac {b (a d (3-2 n)-b c (3-n)) x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {b x^n}{a}\right )}{3 a^2 (b c-a d)^2 n}+\frac {d^2 x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {d x^n}{c}\right )}{3 c (b c-a d)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 142, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {518, 611, 371}
\begin {gather*} \frac {b x^3 (a d (3-2 n)-b c (3-n)) \, _2F_1\left (1,\frac {3}{n};\frac {n+3}{n};-\frac {b x^n}{a}\right )}{3 a^2 n (b c-a d)^2}+\frac {d^2 x^3 \, _2F_1\left (1,\frac {3}{n};\frac {n+3}{n};-\frac {d x^n}{c}\right )}{3 c (b c-a d)^2}+\frac {b x^3}{a n (b c-a d) \left (a+b x^n\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 518
Rule 611
Rubi steps
\begin {align*} \int \frac {x^2}{\left (a+b x^n\right )^2 \left (c+d x^n\right )} \, dx &=\frac {b x^3}{a (b c-a d) n \left (a+b x^n\right )}-\frac {\int \frac {x^2 \left (b c (3-n)+a d n+b d (3-n) x^n\right )}{\left (a+b x^n\right ) \left (c+d x^n\right )} \, dx}{a (b c-a d) n}\\ &=\frac {b x^3}{a (b c-a d) n \left (a+b x^n\right )}-\frac {\int \left (\frac {b (-a d (3-2 n)+b c (3-n)) x^2}{(b c-a d) \left (a+b x^n\right )}+\frac {a d^2 n x^2}{(-b c+a d) \left (c+d x^n\right )}\right ) \, dx}{a (b c-a d) n}\\ &=\frac {b x^3}{a (b c-a d) n \left (a+b x^n\right )}+\frac {d^2 \int \frac {x^2}{c+d x^n} \, dx}{(b c-a d)^2}+\frac {(b (a d (3-2 n)-b c (3-n))) \int \frac {x^2}{a+b x^n} \, dx}{a (b c-a d)^2 n}\\ &=\frac {b x^3}{a (b c-a d) n \left (a+b x^n\right )}+\frac {b (a d (3-2 n)-b c (3-n)) x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {b x^n}{a}\right )}{3 a^2 (b c-a d)^2 n}+\frac {d^2 x^3 \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {d x^n}{c}\right )}{3 c (b c-a d)^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 135, normalized size = 0.95 \begin {gather*} \frac {x^3 \left (b c (a d (3-2 n)+b c (-3+n)) \left (a+b x^n\right ) \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {b x^n}{a}\right )+a \left (3 b c (b c-a d)+a d^2 n \left (a+b x^n\right ) \, _2F_1\left (1,\frac {3}{n};\frac {3+n}{n};-\frac {d x^n}{c}\right )\right )\right )}{3 a^2 c (b c-a d)^2 n \left (a+b x^n\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {x^{2}}{\left (a +b \,x^{n}\right )^{2} \left (c +d \,x^{n}\right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: HeuristicGCDFailed} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2}{{\left (a+b\,x^n\right )}^2\,\left (c+d\,x^n\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________